package com.jmxcfc.blfsc.huisheng.config;

import com.jmxcfc.fs.common.jasypt.CommonEncryptablePropertyResolver;
import com.ulisesbocchio.jasyptspringboot.EncryptablePropertyResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author jmx_lcc
 * @version 1.0.0
 * @date 2023/5/29 17:25
 * @since 1.0.0z
 */
@Configuration
public class JasyptConfig {

    private String password = "*pbssms@$^jmx20(18&";

    @Bean(name = "encryptablePropertyResolver")
    EncryptablePropertyResolver encryptablePropertyResolver() {
        return new CommonEncryptablePropertyResolver(password.toCharArray());
    }
}